package com.zking.ssm.He.service.impl;

import com.zking.ssm.He.mapper.HotelOrderMapper;
import com.zking.ssm.He.model.HotelOrder;
import com.zking.ssm.He.service.IHotelOrderService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IHotelOrderServiceImpl implements IHotelOrderService {
    @Autowired
    private HotelOrderMapper hotelOrderMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return hotelOrderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(HotelOrder record) {
        return hotelOrderMapper.insertSelective(record);
    }

    @Override
    public HotelOrder selectByPrimaryKey(Long id) {
        return hotelOrderMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelOrder record) {
        return hotelOrderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<HotelOrder> list(HotelOrder recoed, PageBean pageBean) {
        return hotelOrderMapper.list(recoed);
    }
}
